package com.entity;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.utils.Date2LongSerializer;

@TableName("t_work_order")
public class WorkOrder {
    private String id;

    private String complaintId;

    private Integer emergencyLevel;

    private String createBy;
    @JsonSerialize(using = Date2LongSerializer.class)
    private Date createDate;

    private String updateBy;

    @JsonSerialize(using = Date2LongSerializer.class)
    private Date updateDate;

    private String workOrderStatus;

    private String areaLeader;

    private String maintainStaff;

    private String workNo;

    private Byte isRead;

    private String faultDescription;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getComplaintId() {
        return complaintId;
    }

    public void setComplaintId(String complaintId) {
        this.complaintId = complaintId == null ? null : complaintId.trim();
    }

    public Integer getEmergencyLevel() {
        return emergencyLevel;
    }

    public void setEmergencyLevel(Integer emergencyLevel) {
        this.emergencyLevel = emergencyLevel;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy == null ? null : createBy.trim();
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy == null ? null : updateBy.trim();
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getWorkOrderStatus() {
        return workOrderStatus;
    }

    public void setWorkOrderStatus(String workOrderStatus) {
        this.workOrderStatus = workOrderStatus == null ? null : workOrderStatus.trim();
    }

    public String getAreaLeader() {
        return areaLeader;
    }

    public void setAreaLeader(String areaLeader) {
        this.areaLeader = areaLeader == null ? null : areaLeader.trim();
    }

    public String getMaintainStaff() {
        return maintainStaff;
    }

    public void setMaintainStaff(String maintainStaff) {
        this.maintainStaff = maintainStaff == null ? null : maintainStaff.trim();
    }

    public String getWorkNo() {
        return workNo;
    }

    public void setWorkNo(String workNo) {
        this.workNo = workNo == null ? null : workNo.trim();
    }

    public Byte getIsRead() {
        return isRead;
    }

    public void setIsRead(Byte isRead) {
        this.isRead = isRead;
    }

    public String getFaultDescription() {
        return faultDescription;
    }

    public void setFaultDescription(String faultDescription) {
        this.faultDescription = faultDescription == null ? null : faultDescription.trim();
    }
    
    @TableField(exist = false)
    private Map<String, Object> complaintView;
    
    @TableField(exist = false)
    private List<Map<String, Object>> guidanceList;
    
    @TableField(exist = false)
    private List<WorkRecord> workRecordList;
    
    @TableField(exist = false)
    private List<WorkExecuteRecord> executeRecordList;
    

	public List<WorkExecuteRecord> getExecuteRecordList() {
		return executeRecordList;
	}

	public void setExecuteRecordList(List<WorkExecuteRecord> executeRecordList) {
		this.executeRecordList = executeRecordList;
	}

	public Map<String, Object> getComplaintView() {
		return complaintView;
	}

	public void setComplaintView(Map<String, Object> complaintView) {
		this.complaintView = complaintView;
	}

	public List<Map<String, Object>> getGuidanceList() {
		return guidanceList;
	}

	public void setGuidanceList(List<Map<String, Object>> guidanceList) {
		this.guidanceList = guidanceList;
	}

	public List<WorkRecord> getWorkRecordList() {
		return workRecordList;
	}

	public void setWorkRecordList(List<WorkRecord> workRecordList) {
		this.workRecordList = workRecordList;
	}
    
    
}